SELECT b.id, b.subcat_name FROM tbl_category_mst a, tbl_subcategory_mst b, tbl_category_subcategory_map c
		WHERE 
		a.id=c.category_id AND 
		b.id = c.subcategory_id AND 
		a.is_active='Y' AND a.category_name='Design1'